package com.feign.file;

import com.lhs.config.Feign.FeignMultipartConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestPart;
import org.springframework.web.multipart.MultipartFile;

@FeignClient(name = "file-service", configuration = FeignMultipartConfig.class)
public interface FileFeignClient {
    @PostMapping(value = "/file/upload", consumes = "multipart/form-data")
    String upload(@RequestPart("file") MultipartFile file);
}
